Optimal. Leaf size=176 \[ -\frac {d}{c (b c-a d) x^3 \sqrt {c+d x^2}}-\frac {(b c-4 a d) \sqrt {c+d x^2}}{3 a c^2 (b c-a d) x^3}+\frac {(3 b c-4 a d) (b c+2 a d) \sqrt {c+d x^2}}{3 a^2 c^3 (b c-a d) x}+\frac {b^3 \tan ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {a} \sqrt {c+d x^2}}\right )}{a^{5/2} (b c-a d)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 176, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {483, 597, 12,
385, 211} \begin {gather*} \frac {b^3 \text {ArcTan}\left (\frac {x \sqrt {b c-a d}}{\sqrt {a} \sqrt {c+d x^2}}\right )}{a^{5/2} (b c-a d)^{3/2}}+\frac {\sqrt {c+d x^2} (3 b c-4 a d) (2 a d+b c)}{3 a^2 c^3 x (b c-a d)}-\frac {\sqrt {c+d x^2} (b c-4 a d)}{3 a c^2 x^3 (b c-a d)}-\frac {d}{c x^3 \sqrt {c+d x^2} (b c-a d)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 211
Rule 385
Rule 483
Rule 597
Rubi steps
\begin {align*} \int \frac {1}{x^4 \left (a+b x^2\right ) \left (c+d x^2\right )^{3/2}} \, dx &=-\frac {d}{c (b c-a d) x^3 \sqrt {c+d x^2}}+\frac {\int \frac {b c-4 a d-4 b d x^2}{x^4 \left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{c (b c-a d)}\\ &=-\frac {d}{c (b c-a d) x^3 \sqrt {c+d x^2}}-\frac {(b c-4 a d) \sqrt {c+d x^2}}{3 a c^2 (b c-a d) x^3}-\frac {\int \frac {(3 b c-4 a d) (b c+2 a d)+2 b d (b c-4 a d) x^2}{x^2 \left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{3 a c^2 (b c-a d)}\\ &=-\frac {d}{c (b c-a d) x^3 \sqrt {c+d x^2}}-\frac {(b c-4 a d) \sqrt {c+d x^2}}{3 a c^2 (b c-a d) x^3}+\frac {(3 b c-4 a d) (b c+2 a d) \sqrt {c+d x^2}}{3 a^2 c^3 (b c-a d) x}+\frac {\int \frac {3 b^3 c^3}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{3 a^2 c^3 (b c-a d)}\\ &=-\frac {d}{c (b c-a d) x^3 \sqrt {c+d x^2}}-\frac {(b c-4 a d) \sqrt {c+d x^2}}{3 a c^2 (b c-a d) x^3}+\frac {(3 b c-4 a d) (b c+2 a d) \sqrt {c+d x^2}}{3 a^2 c^3 (b c-a d) x}+\frac {b^3 \int \frac {1}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{a^2 (b c-a d)}\\ &=-\frac {d}{c (b c-a d) x^3 \sqrt {c+d x^2}}-\frac {(b c-4 a d) \sqrt {c+d x^2}}{3 a c^2 (b c-a d) x^3}+\frac {(3 b c-4 a d) (b c+2 a d) \sqrt {c+d x^2}}{3 a^2 c^3 (b c-a d) x}+\frac {b^3 \text {Subst}\left (\int \frac {1}{a-(-b c+a d) x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )}{a^2 (b c-a d)}\\ &=-\frac {d}{c (b c-a d) x^3 \sqrt {c+d x^2}}-\frac {(b c-4 a d) \sqrt {c+d x^2}}{3 a c^2 (b c-a d) x^3}+\frac {(3 b c-4 a d) (b c+2 a d) \sqrt {c+d x^2}}{3 a^2 c^3 (b c-a d) x}+\frac {b^3 \tan ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {a} \sqrt {c+d x^2}}\right )}{a^{5/2} (b c-a d)^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.51, size = 175, normalized size = 0.99 \begin {gather*} \frac {3 b^2 c^2 x^2 \left (c+d x^2\right )+a^2 d \left (c^2-4 c d x^2-8 d^2 x^4\right )+a b c \left (-c^2+c d x^2+2 d^2 x^4\right )}{3 a^2 c^3 (b c-a d) x^3 \sqrt {c+d x^2}}-\frac {b^3 \tan ^{-1}\left (\frac {a \sqrt {d}+b x \left (\sqrt {d} x-\sqrt {c+d x^2}\right )}{\sqrt {a} \sqrt {b c-a d}}\right )}{a^{5/2} (b c-a d)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(846\) vs.
\(2(156)=312\).
time = 0.14, size = 847, normalized size = 4.81
method | result | size |
risch | \(-\frac {\sqrt {d \,x^{2}+c}\, \left (-5 a d \,x^{2}-3 c \,x^{2} b +a c \right )}{3 c^{3} a^{2} x^{3}}-\frac {b \,d^{3} \sqrt {\left (x -\frac {\sqrt {-c d}}{d}\right )^{2} d +2 \sqrt {-c d}\, \left (x -\frac {\sqrt {-c d}}{d}\right )}}{2 c^{3} \left (b \sqrt {-c d}+\sqrt {-a b}\, d \right ) \left (\sqrt {-a b}\, d -b \sqrt {-c d}\right ) \left (x -\frac {\sqrt {-c d}}{d}\right )}-\frac {b^{4} d \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x -\frac {\sqrt {-a b}}{b}}\right )}{2 a^{2} \sqrt {-a b}\, \left (b \sqrt {-c d}+\sqrt {-a b}\, d \right ) \left (\sqrt {-a b}\, d -b \sqrt {-c d}\right ) \sqrt {-\frac {a d -b c}{b}}}-\frac {b \,d^{3} \sqrt {\left (x +\frac {\sqrt {-c d}}{d}\right )^{2} d -2 \sqrt {-c d}\, \left (x +\frac {\sqrt {-c d}}{d}\right )}}{2 c^{3} \left (b \sqrt {-c d}+\sqrt {-a b}\, d \right ) \left (\sqrt {-a b}\, d -b \sqrt {-c d}\right ) \left (x +\frac {\sqrt {-c d}}{d}\right )}+\frac {b^{4} d \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x +\frac {\sqrt {-a b}}{b}}\right )}{2 a^{2} \sqrt {-a b}\, \left (b \sqrt {-c d}+\sqrt {-a b}\, d \right ) \left (\sqrt {-a b}\, d -b \sqrt {-c d}\right ) \sqrt {-\frac {a d -b c}{b}}}\) | \(641\) |
default | \(\frac {b^{2} \left (-\frac {b}{\left (a d -b c \right ) \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}+\frac {2 d \sqrt {-a b}\, \left (2 d \left (x -\frac {\sqrt {-a b}}{b}\right )+\frac {2 d \sqrt {-a b}}{b}\right )}{\left (a d -b c \right ) \left (-\frac {4 d \left (a d -b c \right )}{b}+\frac {4 d^{2} a}{b}\right ) \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}+\frac {b \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x -\frac {\sqrt {-a b}}{b}}\right )}{\left (a d -b c \right ) \sqrt {-\frac {a d -b c}{b}}}\right )}{2 a^{2} \sqrt {-a b}}-\frac {b^{2} \left (-\frac {b}{\left (a d -b c \right ) \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}-\frac {2 d \sqrt {-a b}\, \left (2 d \left (x +\frac {\sqrt {-a b}}{b}\right )-\frac {2 d \sqrt {-a b}}{b}\right )}{\left (a d -b c \right ) \left (-\frac {4 d \left (a d -b c \right )}{b}+\frac {4 d^{2} a}{b}\right ) \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}+\frac {b \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x +\frac {\sqrt {-a b}}{b}}\right )}{\left (a d -b c \right ) \sqrt {-\frac {a d -b c}{b}}}\right )}{2 a^{2} \sqrt {-a b}}+\frac {-\frac {1}{3 c \,x^{3} \sqrt {d \,x^{2}+c}}-\frac {4 d \left (-\frac {1}{c x \sqrt {d \,x^{2}+c}}-\frac {2 d x}{c^{2} \sqrt {d \,x^{2}+c}}\right )}{3 c}}{a}-\frac {b \left (-\frac {1}{c x \sqrt {d \,x^{2}+c}}-\frac {2 d x}{c^{2} \sqrt {d \,x^{2}+c}}\right )}{a^{2}}\) | \(847\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 333 vs.
\(2 (156) = 312\).
time = 1.24, size = 706, normalized size = 4.01 \begin {gather*} \left [\frac {3 \, {\left (b^{3} c^{3} d x^{5} + b^{3} c^{4} x^{3}\right )} \sqrt {-a b c + a^{2} d} \log \left (\frac {{\left (b^{2} c^{2} - 8 \, a b c d + 8 \, a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} - 2 \, {\left (3 \, a b c^{2} - 4 \, a^{2} c d\right )} x^{2} + 4 \, {\left ({\left (b c - 2 \, a d\right )} x^{3} - a c x\right )} \sqrt {-a b c + a^{2} d} \sqrt {d x^{2} + c}}{b^{2} x^{4} + 2 \, a b x^{2} + a^{2}}\right ) - 4 \, {\left (a^{2} b^{2} c^{4} - 2 \, a^{3} b c^{3} d + a^{4} c^{2} d^{2} - {\left (3 \, a b^{3} c^{3} d - a^{2} b^{2} c^{2} d^{2} - 10 \, a^{3} b c d^{3} + 8 \, a^{4} d^{4}\right )} x^{4} - {\left (3 \, a b^{3} c^{4} - 2 \, a^{2} b^{2} c^{3} d - 5 \, a^{3} b c^{2} d^{2} + 4 \, a^{4} c d^{3}\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{12 \, {\left ({\left (a^{3} b^{2} c^{5} d - 2 \, a^{4} b c^{4} d^{2} + a^{5} c^{3} d^{3}\right )} x^{5} + {\left (a^{3} b^{2} c^{6} - 2 \, a^{4} b c^{5} d + a^{5} c^{4} d^{2}\right )} x^{3}\right )}}, \frac {3 \, {\left (b^{3} c^{3} d x^{5} + b^{3} c^{4} x^{3}\right )} \sqrt {a b c - a^{2} d} \arctan \left (\frac {\sqrt {a b c - a^{2} d} {\left ({\left (b c - 2 \, a d\right )} x^{2} - a c\right )} \sqrt {d x^{2} + c}}{2 \, {\left ({\left (a b c d - a^{2} d^{2}\right )} x^{3} + {\left (a b c^{2} - a^{2} c d\right )} x\right )}}\right ) - 2 \, {\left (a^{2} b^{2} c^{4} - 2 \, a^{3} b c^{3} d + a^{4} c^{2} d^{2} - {\left (3 \, a b^{3} c^{3} d - a^{2} b^{2} c^{2} d^{2} - 10 \, a^{3} b c d^{3} + 8 \, a^{4} d^{4}\right )} x^{4} - {\left (3 \, a b^{3} c^{4} - 2 \, a^{2} b^{2} c^{3} d - 5 \, a^{3} b c^{2} d^{2} + 4 \, a^{4} c d^{3}\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{6 \, {\left ({\left (a^{3} b^{2} c^{5} d - 2 \, a^{4} b c^{4} d^{2} + a^{5} c^{3} d^{3}\right )} x^{5} + {\left (a^{3} b^{2} c^{6} - 2 \, a^{4} b c^{5} d + a^{5} c^{4} d^{2}\right )} x^{3}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x^{4} \left (a + b x^{2}\right ) \left (c + d x^{2}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.60, size = 275, normalized size = 1.56 \begin {gather*} \frac {b^{3} \sqrt {d} \arctan \left (-\frac {{\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} b - b c + 2 \, a d}{2 \, \sqrt {a b c d - a^{2} d^{2}}}\right )}{{\left (a^{2} b c - a^{3} d\right )} \sqrt {a b c d - a^{2} d^{2}}} - \frac {d^{3} x}{{\left (b c^{4} - a c^{3} d\right )} \sqrt {d x^{2} + c}} - \frac {2 \, {\left (3 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{4} b c \sqrt {d} + 3 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{4} a d^{\frac {3}{2}} - 6 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} b c^{2} \sqrt {d} - 12 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} a c d^{\frac {3}{2}} + 3 \, b c^{3} \sqrt {d} + 5 \, a c^{2} d^{\frac {3}{2}}\right )}}{3 \, {\left ({\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} - c\right )}^{3} a^{2} c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{x^4\,\left (b\,x^2+a\right )\,{\left (d\,x^2+c\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________